package com.atguigu.serviceedu.clients;

import com.atguigu.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Classname VodClient
 * @Description TODO
 * @Date 2022/9/4 17:00
 * @Created by ZHL17
 */
@Component
@FeignClient(name = "service-vod",fallback = VodClientDegradeImpl.class)
public interface VodClient {
    @DeleteMapping("/eduvod/video/deleteVideoById/{id}")
    R deleteVideoById(@PathVariable("id") String id);

    @DeleteMapping("/eduvod/video/deleteVideoList")
    R deleteVideoList(@RequestParam("videoIdList") List<String> videoIdList);
}
